package com.ehome.poct.core.application;

import com.ehome.poct.core.api.common.DeviceTypeConst;
import com.ehome.poct.core.api.vo.check.CellCheckDataVO;
import com.google.common.collect.Table;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * 查询器
 * @author cq
 */
@Component
@RefreshScope
@RequiredArgsConstructor
public class StandaloneCheckQry {
    @Autowired private CheckFactory checkFactory;

    public CellCheckDataVO getCellData(Long id){
        return (CellCheckDataVO) checkFactory.get(DeviceTypeConst.BLOOD).getCheckData(id);
    }
}
